<template>
  <div>
    <button @click="handleClick">{{ count }} </button>
  </div>
  <div>
    <button @click="aaa">click</button>
  </div>
</template>

<script>
import { ref, onMounted } from 'vue'
export default {
  setup() {
    const count = ref(0)

    const handleClick = (params) => {
      count.value++
    }

    onMounted(() => {
      count.value = 100
    })

    return {
      count,
      handleClick
    }
  },

  // methods: {
  //   aaa() {
  //     console.log('aaa')
  //   }
  // },

  // beforeCreate() {
  //   console.log('beforeCreate')
  // },

  // mounted() {
  //   console.log('mounted')
  // },
}
</script>

<style lang="less" scoped>

</style>
